﻿namespace _5_NovaAdmin.Infrastructure;

public static class GlobalAssemblies
{
    /// <summary>
    /// 解决方案所有程序集
    /// </summary>
    public static readonly Assembly[] AllAssemblies = new Assembly[]
    {
        Assembly.Load("1`NovaAdmin.Web.Entry"),
        Assembly.Load("2`NovaAdmin.Application"),
        Assembly.Load("3`NovaAdmin.Domain"),
        Assembly.Load("4`NovaAdmin.Web.Core"),
        Assembly.Load("5`NovaAdmin.Infrastructure"),
    };

    /// <summary>
    /// 解决方案所有自定义类
    /// </summary>
    public static readonly List<Type> AllTypes = AllAssemblies.SelectMany(x => x.GetTypes()).ToList();

    /// <summary>
    /// 超级管理员UserIId
    /// </summary>
    public const string ADMINID = "Admin";
}
